package me.zhengjie.gas.repositories;

import me.zhengjie.gas.dto.CodeFirstMigrationDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CodeFirstMigrationRepository extends JpaRepository<CodeFirstMigrationDto, Long> {
	@Query(value = "SELECT * FROM {h-schema}code_first_migration",nativeQuery = true)
	List<CodeFirstMigrationDto> findCodeFirstMigrationList();
}
